module b2g_conv #(parameter SIZE = 4
)(
    output [SIZE -1:0] gray,
    input  [SIZE -1:0] binary
);

assign gray = (binary >> 1) ^ binary;

endmodule